package Ga.Implementations.Points;

import java.util.ArrayList;

import Ga.Design.GeneticAlgorithm;
import Ga.Design.IIndividual;

public class PointsGA extends GeneticAlgorithm
{
	public IIndividual getNewIndivual()
	{
		return new Point();
	}
	
	public boolean finished()
	{
		return false;
	}
	
	public ArrayList<Point> getPoints()
	{
		ArrayList<Point> points = new ArrayList<Point>();
		for(IIndividual i : this.getPopulation())
		{
			points.add((Point)i);
		}
		return points;
	}
	
	public void show()
	{
		int i = 1;
		for(Point t : this.getPoints())
		{
			System.out.println("(" + i + ") - " + t.toString());
			i++;
		}
	}
}